package ajo;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

/**
 * Tests that GetBulletPower() returns the correct output based on its input.
 * 
 * @author Joshua Antonio
 * 
 */
public class TestBattleBotBulletPower {
  /**
   * Bullet power should be proportional to the distance from the enemy.
   */
  @Test
  public void testGetBulletPower() {
    BattleBot bot = new BattleBot();
    assertEquals(bot.getBulletPower(100), 2.7, 0);
    assertEquals(bot.getBulletPower(200), 2.4, 0);
    assertEquals(bot.getBulletPower(300), 2.1, 0);
    assertEquals(bot.getBulletPower(400), 1.8, 0);
    assertEquals(bot.getBulletPower(500), 1.5, 0);
    assertEquals(bot.getBulletPower(600), 1.2, 0);
  }
}
